import * as types from './ActionTypes.js';
import { createAction } from 'redux-actions';
import {fetchRequest} from '../util/fetch';

export const selUserAll = createAction(types.SEL_USER,(data)=>{
    return fetchRequest('user/selUserAll?page='+data.page,'GET');
});
export const selUserById = createAction(types.SEL_USER_INFO,(id)=>{
    return fetchRequest('user/selUserById?id='+id,'GET');
});